function request (path, data){
	return new Promise((resolve, reject)=>{
		vk.callFunction({
			url: path,
			title: '拼命加载中...',
			data: data
		}).then((data) => {
			resolve(data)
		}).catch((err) => {
			reject(err)
			console.log(err)
			vk.toast('网络开小差了~')
		});
	})
}

// 首页
export const index = () => request('client/display/pub/index')
// 留言
export const sendMessage = (data) => request('client/display/pub/message', data)

// 关于我们
export const aboutus = (data) => request('client/display/pub/aboutus', data)
export const aboutusDetail = (data) => request('client/display/pub/aboutus-detail', data)

// 案例
export const dcase = (data) => request('client/display/pub/case', data)
export const caseDetail = (data) => request('client/display/pub/case-detail', data)

// 发展历程
export const history = (data) => request('client/display/pub/history', data)

// 公司介绍
export const introduce = (data) => request('client/display/pub/introduce', data)

// 新闻
export const news = (data) => request('client/display/pub/news', data)
export const newsDetail = (data) => request('client/display/pub/news-detail', data)

// 产品
export const product = (data) => request('client/display/pub/product', data)
export const productCategory = (data) => request('client/display/pub/product-category', data)
export const productDetail = (data) => request('client/display/pub/product-detail', data)